// 是否有权限
function hasPermissions(value: Array<string>): boolean {
  if (value && value instanceof Array && value.length > 0) {
    const roles = [];
    const permissionRoles = value;

    return roles.some(role => {
      return permissionRoles.includes(role);
    });

  } else {
    return false;
  }
}
